package com.thenmoret.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.thenmoret.pojo.Article;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer articleId);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer articleId);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);
    
    /**
     * 返回查询的集合
     */
    public List<Article> selectByList();
    /**
     * 根据起始页 和 结束页查找集合
     */
    public List<Article> selectBypage(Integer start,Integer end);
    
    /**
     * 根据前台传入的id号 来增加点击量
     */
    public Integer updateClickhitByPrimaryKey(Integer articleId);
    
}